<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 生成一个表格，表头包括id，头像，姓名 -->
    <div id="app"> 
        <table border="1">
            <thead>
                <tr>
                    <th>序号</th>
                    <th>头像</th>
                    <th>姓名</th>
                </tr>
            </thead>
            <tbody>
                <tr v-for="(e,index) in staffs" :key="e.id">
                    <td>{{index + 1}}</td>
                    <td><img :src="e.avatar" :alt="{{e.name}}"></td>
                </tr>
            </tbody>
        </table>
    </div>
</body>
</html>